package com.zk.iotgateway.net;

import java.net.InetSocketAddress;

/**
 *
 * 抽象的tcp服务
 */
public abstract class AbstractNettyServerService extends AbstractServerService {

    protected int serverPort;
    protected int boss;
    protected int work;
    protected InetSocketAddress serverAddress;


    public AbstractNettyServerService(String serverPort,int boss,int work) {
        super(serverPort);
        this.serverPort = Integer.parseInt(serverPort);
        this.boss = boss;
        this.work = work;
        this.serverAddress = new InetSocketAddress(this.serverPort);
    }
}
